package com.ehsy.service;

import com.dtflys.forest.annotation.Request;
import com.ehsy.common.AjaxResult;
import com.ehsy.common.ResponseData;
import com.ehsy.common.ResponseVo;
import org.springframework.stereotype.Service;

/**
 * @author YanZhen_Li
 * @version 1.0
 * @title service
 * @description
 * @create 2024/6/17 11:31
 */
@Service
public interface SimpleService {
    /**
     * 简单请求
     */
    @Request("http://localhost:8080/test/request/json/body")
    ResponseVo<Object> simpleRequest();

    /**
     * 添加请求头
     */
    @Request(
            url = "http://localhost:8080/test/request/json/body",
            headers = "requestUser: Jerry_Li"
    )
    ResponseVo<Object> simpleRequestHeader();
}
